package com.cybertron.ironhide.manage.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cybertron.ironhide.manage.common.base.Pager;
import com.cybertron.ironhide.manage.domain.Recommend;
import com.cybertron.ironhide.manage.persistence.RecommendMapper;
import com.cybertron.ironhide.manage.service.RecommendService;

@Service
public class RecommendServiceImpl implements RecommendService {

	@Resource
	private RecommendMapper recommendMapper;

	@Override
	public List<Recommend> selectBySelective(Recommend recommend, Pager pager) {
		return recommendMapper.selectBySelective(recommend, pager);
	}

	@Override
	public void insertSelective(Recommend recommend) {
		recommendMapper.insertSelective(recommend);
	}

	@Override
	public Recommend selectByPrimaryKey(Long id) {
		return recommendMapper.selectByPrimaryKey(id);
	}

	@Override
	public void updateByPrimaryKeySelective(Recommend recommend) {
		recommendMapper.updateByPrimaryKeySelective(recommend);
	}

	@Override
	public void deleteByPrimaryKey(Long id) {
		recommendMapper.deleteByPrimaryKey(id);
	}

	@Override
	public List<Recommend> selectByIndex() {
		return recommendMapper.selectByIndex();
	}

}
